package org.zjx.resolution.resolution;

import org.zjx.common.entity.Rect;
import org.zjx.resolution.AbstractScreenResolution;

public  class GameWindowResolution extends AbstractScreenResolution {
    public static final String GAME_WINDOW_CLASS_NAME = "窗口句柄_类名";
    public static final String GAME_WINDOW_TITLE_NAME = "窗口句柄_标题";


    public static final String GAME_WINDOW_TRUE_RECT = "真实游戏窗口边界";

    public GameWindowResolution() {
        // 初始化时不加载配置，改为显式调用load方法
    }

    /**
     * 设置默认配置值
     */
    @Override
    protected void setDefaultValues() {
        getProperties().put(GAME_WINDOW_CLASS_NAME, "WSGAME");
        getProperties().put(GAME_WINDOW_TITLE_NAME, "梦幻西游 ONLINE");

        // 创建并添加启动按钮
        Rect boundary = new Rect(8, 31, -8, -8);
        getProperties().put(GAME_WINDOW_TRUE_RECT, boundary);

        // 保存默认配置（可选）
        saveDefaultConfiguration();
    }

    @Override
    protected boolean needTheme() {
        return false;
    }

}
